recoverSuspend
inline suspend fun <R, T : R> Result<T>.recoverSuspend(crossinline transform: suspend (exception: Throwable) -> R): Result<R>
Recovers from a failure by executing transform to create a new value if the Result is a failure.
Return
Result
Parameters
transform
A suspend function to transform the exception on failure.